package com.th.supcom.pds.config.client.page;

import net.carefx.framework.container.client.context.AppContext;
import net.carefx.framework.container.client.page.IPageEntryPoint;
import net.carefx.framework.container.client.page.PageContext;
import net.carefx.framework.reflection.shared.annotations.Reflectable;

import com.extjs.gxt.ui.client.Style.HideMode;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.th.supcom.pds.common.utils.ClientUtils;
import com.th.supcom.pds.deptdispensary.client.widget.NurseVsDispensaryTabPanel;

/**
 * PhamNurseUnitConfig 入口类实现.
 * 
 * 药房护理单元配置.
 */
@Reflectable
public class PhamNurseUnitConfigEntryPoint implements IPageEntryPoint
{
    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    @Override
    public void start (final PageContext context)
    {
        context.getWorkBench ().getBodyView ().getWorkspace ().getContextView ().asLayoutContainer ().hide ();
        LayoutContainer mainLayoutContainer;
        mainLayoutContainer = context.getContainer ();
        mainLayoutContainer.setHideMode (HideMode.OFFSETS);
        mainLayoutContainer.add (new NurseVsDispensaryTabPanel ());
    }

    @Override
    public void stop (final PageContext context)
    {
        return;
    }
}